package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
     * 用户日志表,记录每日用户的登录及操作具体时间
     */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "user_log")
public class UserLog implements java.io.Serializable{
    private static final long serialVersionUID = 8086178416317502524L;
    private ObjectId id;
    @Indexed
    private Integer userId; // 用户id
    private Integer type;//用户操作类型 1:登录 2:其他操作
    private Long loginDate;//登陆时间
    private Long operateDate;//操作时间
}